package com.xtoneict.auth.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xtoneict.auth.entity.Permission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface PermissonMapper extends BaseMapper<Permission> {
    @Select("select permission_id from role_permission where role_id = #{roleId}")
    List<Integer> selectPermissionByRoleId(Integer roleId);


}
